﻿@model ITSTOREBLL.TaiKhoan

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout_admin.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/themes/base/jquery.ui.datepicker.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/base/jquery.ui.theme.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    $(document).ready(function () {
        $('#tk_NgaySinh').datepicker({ dateFormat: "dd/mm/yy" });
    });
</script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <center>
            <legend>
                <h2>
                    Tạo mới tài khoản</h2>
            </legend>
            <table style="text-align: left; font-size: 12pt">
                <tr>
                    <td class="editor-label">
                        Tên đăng nhập
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.tk_TenDangNhap)
                        @Html.ValidationMessageFor(model => model.tk_TenDangNhap)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Mật khẩu
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.tk_MatKhau)
                        @Html.ValidationMessageFor(model => model.tk_MatKhau)
                    </td>
                </tr>

                <tr>
                    <td class="editor-label">
                        Mật khẩu gõ lại
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.MatKhauGoLai)
                        @Html.ValidationMessageFor(model => model.MatKhauGoLai)
                    </td>
                </tr>

                <tr>
                    <td class="editor-label">
                        Loại tài khoản
                    </td>
                    <td class="editor-field">
                        @*@Html.DropDownList("RoleName")*@
                        @Html.DropDownList("tk_Loai", String.Empty)
                        @Html.ValidationMessageFor(model => model.tk_Loai)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Họ tên
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.tk_Ten)
                        @Html.ValidationMessageFor(model => model.tk_Ten)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Ngày sinh
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.tk_NgaySinh)
                        @Html.ValidationMessageFor(model => model.tk_NgaySinh)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Giới tính
                    </td>
                    <td class="editor-field">
                        @Html.DropDownList("tk_GioiTinh", String.Empty)
                        @Html.ValidationMessageFor(model => model.tk_GioiTinh)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Nơi ở
                    </td>
                    <td class="editor-field">
                        @Html.DropDownList("tk_TinhThanh", String.Empty)
                        @Html.ValidationMessageFor(model => model.tk_TinhThanh)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Email
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.tk_Email)
                        @Html.ValidationMessageFor(model => model.tk_Email)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Hình đại diện
                    </td>
                    <td class="editor-field">
                        @Html.EditorFor(model => model.tk_HinhDaiDien)
                        @Html.ValidationMessageFor(model => model.tk_HinhDaiDien)
                    </td>
                </tr>
                <tr>
                    <td colspan = 2 style="text-align:center;">
                        <input type="submit" value="Tạo tài khoản" /> | 
                        <input type="reset" value="Hủy" />
                    </td>
                </tr>
            </table>
        </center>
    </fieldset>
}
